extends Control

@onready var textureRect = $TextureRect
@onready var countLabel = $Label

var data
var config 


func initItem(_data):
	data = _data
	config = data.config
	
	var resource = config.icon
	textureRect.texture = Global.createIconAtlasTexture(resource)
	

func clearItem():
	textureRect.texture = null
	data = null
	config = null

	
	
	
	
